package com.joysuch.wwyt.api.alarmbluetooth.exception;

import org.springframework.util.StringUtils;

/**
 * @author jiahao
 * @date 2021/1/15 22
 */
public class Assert {


    public static void isNull(String appId, String message) {
        if (StringUtils.isEmpty(appId)) {
            throw new BizException(ErrorCode.CONFIG_ERROR, message);
        }
    }

    public static void tokenIsNull(String appId, String message) {
        if (StringUtils.isEmpty(appId)) {
            throw new BizException(ErrorCode.CONFIG_ERROR, message);
        }
    }
}
